package com.example.mould.api.service;

import com.example.common.SchedualServiceHiHystric;
import com.example.config.FeignLogConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created with IntelliJ IDEA.
 *
 * @author dj
 * Date: 2018/2/6
 * Time: 13:54
 */
@FeignClient(value = "service-hi",fallback = SchedualServiceHiHystric.class,configuration = FeignLogConfiguration.class)
public interface SchedualServiceHi {

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);

}
